<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="/static/WebTours/images/hp-blue-favicon.png" rel="icon" type="image/png" sizes="32x32">
    <title>Web Tours - Itinerary</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f0f4f8;
            margin: 0;
            padding: 0;
        }

        header {
            background-color: #003366;
            color: white;
            padding: 10px;
            display: flex;
            align-items: center;
        }

        header img {
            margin-right: 10px;
            height: 30px;
        }

        .container {
            display: flex;
            margin: 20px auto;
        }

        .menu {
            width: 150px;
            padding: 20px;
            border-right: 1px solid #ccc;
        }

        .menu a {
            padding: 5px 20px;
            margin: 5px;
            font-size: 16px;
            text-align: center;
            text-decoration: none;
            color: white;
            background: linear-gradient(45deg, #bdc3c7, #2c3e50);
            border-radius: 5px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
            transition: all .2s ease-in-out;
            border: 1px solid #000;
            display: block;
        }

        .menu a:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 8px rgba(0, 0, 0, .2);
        }

        .content {
            flex: 1;
            padding: 20px;
        }

        .content > h2 {
            color: #003366;
        }

        .itinerary-container {
            border: 1px solid #ccc;
            padding: 10px;
            margin-top: 20px;
        }

        .itinerary-header {
            background-color: #708090;
            color: white;
            padding: 5px;
            text-align: center;
        }

        .flight-item {
            border-bottom: 1px solid #ccc;
            padding: 10px;
            display: flex;
            justify-content: space-between;
        }

        .flight-details {
            width: 50%;
        }

        .invoice-details {
            width: 50%;
            text-align: right;
        }

        .buttons {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }
    </style>
</head>
<body>
<header>
    <img src="/static/WebTours/images/hp_logo.png" alt="HP Logo">
    <span>Web Tours</span>
</header>

<div class="container">
    <div class="menu">
        <a href="/flight">Flights</a>
        <a href="/itinerary">Itinerary</a>
        <a href="/home">Home</a>
        <a href="/signoff">Sign Off</a>
    </div>

    <div class="content">
        <h2>Itinerary</h2>
        <div class="itinerary-container">
            <div class="itinerary-header">Jojo Bean's Flight Transaction Summary</div>
            <div class="flight-item" th:each="payment : ${list}">
                <div class="flight-details">
                    <input type="checkbox"> A Coach class ticket for:
                    <ul>
                        <li th:text="${payment.pass1}">Jojo Bean</li>
                    </ul>
                    Flight Details:<br>
                    <span th:text="${payment.outboundFlight}"></span> : Flight 000 leaves Denver for Denver.
                </div>
                <div class="invoice-details">
                    Invoice sent to:<br>
                    <span th:text="${payment.pass1}">Jojo Bean</span><br>
                    Total Charge: $ <span th:text="${payment.advanceDiscount}"></span><br>
                    (CC: x)<br>
                </div>
            </div>
            <div style="text-align: center;">
                A total of <span th:text="${length}"></span> scheduled flights.
            </div>
        </div>
        <div class="buttons">
            <button>Cancel Checked</button>
            <button>Cancel All</button>
        </div>
    </div>
</div>
</body>
</html>